package com.gzq.decorator.sgw;

public class CoffeeBar {

    public static void main(String[] args) {
        Drink drink = new LongBlack();
        System.out.println(drink.getDes()+" "+drink.cost());

        drink = new Milk(drink);
        System.out.println(drink.getDes()+"。 总价： "+drink.cost());

        drink = new Chocolate(drink);
        System.out.println(drink.getDes()+"。 总价： "+drink.cost());

        drink = new Chocolate(drink);
        System.out.println(drink.getDes()+"。 总价： "+drink.cost());

    }

}
